﻿namespace LxCore
{
    public class TextReaderOnStream : ITextReader
    {
        public TextReaderOnStream(StreamReader streamReader)
        {
            this.reader = streamReader;
        }
        protected StreamReader reader;
        public char Read()
        {
            return (char)reader.Read();
        }
        public char Peek()
        {
            return (char)reader.Peek();
        }
        public bool EndOfStream()
        {
            return reader.EndOfStream;
        }
    }
}
